package com.daidai.activitys

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.DialogFragment
import com.daidai.base.BaseActivity
import com.daidai.spinner.R


class DFDialog: DialogFragment() {
    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        return inflater.inflate(R.layout.dialog_df,container,false)
    }
}

class DialogFragmentActivity : BaseActivity() {
    override fun getContentViewResId(): Int = R.layout.activity_dialogfragment

    override fun initView() {
        findBtn(R.id.btnDialog).setOnClickListener {
            DFDialog().show(supportFragmentManager,"xx")
        }
    }

    override fun initData() {
    }

}